//
//  RGUserPageView.h
//  RedGrass
//
//  Created by 徐良俊 on 2019/3/18.
//  Copyright © 2019 hongcaosp. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserDynamicViewController.h"
#import "UserWorkListViewController.h"

NS_ASSUME_NONNULL_BEGIN

@protocol RGUserPageViewDelegate <NSObject>

@optional
-(void) updatePersonalPageWithNickName:(NSString *)nickName meFollowmTa:(BOOL)meFollowmTa;
-(void) actionBtnClickWithView:(NSInteger)tag;
@end

@interface RGUserPageView : BaseView
@property (nonatomic,assign) NSInteger userId;

@property (nonatomic,weak) id<RGUserPageViewDelegate> meViewDelegate;
@property (nonatomic,weak) id<RGUserDynamicViewDelegate> userDynamicViewDelegate;
@property (nonatomic,weak) id<RGUserWorkViewDelegate> userWorkViewDelegate;
@property (nonatomic,assign) BOOL isShowHeaderViewBtnView; 

-(void)loadData:(NSInteger)userId;

-(void)reloadData;

- (void)reloadDataWhenNeedUpdateData:(NSInteger)index;

-(void) startFavoriteAnimationWithIsFavorite:(BOOL)isFavorite cellIndex:(NSInteger)index;

-(void) stopPlayingWhenCurrentVCIsNoteVisiable;

-(void) updateCommentCountsWhenCommentSuccessWithCellIndex:(NSInteger)cellIndex;
//转发成功后更新转发数
-(void) updateforwardCountsWhenShareSuccessWithCellIndex:(NSInteger)cellIndex;

@end

NS_ASSUME_NONNULL_END
